const http = uni.$u.http
import { baseUrl } from '@/utils/config.js'

const api = {
	binding: '/employee/bind',
	detail: '/employee/detail',
}

export const binding = (params, config) => http.post(api.binding, params, {
	custom: {
		toast: true
	},
	
	...config
})

export const detail = (config) => http.get(api.detail, {
	custom: {
		toast: false
	},
	
	...config
})